import request from '@/utils/request'

export function getAddressList(params={}) {
  return request('/Amaidan-Merchants-Web/merchants/storeFaceGuest/selectFaceMac', {
    method: 'POST',
    data: params
  })
}

// 获取所有摄像头
export function getCameraList(params={}) {
  return request('/Amaidan-Merchants-Web/user/faceUser/getDevices', {
    method: 'POST',
    data: params
  })
}



// 新增和编辑选中的mac地址
export function macAdressAction(params={}) {
  return request('/Amaidan-Merchants-Web/merchants/storeFaceGuest/addOrUpdateMacAdress', {
    method: 'POST',
    data: params
  })
}


// 获取商户列表
export function fetchMerchants() {
  return request('/Amaidan-Merchants-Web/merchants/busMerchantsInfo/all', {
    method: 'POST'
  })
}


// 根据商户 id 获取门店列表
export function fetchStores(params={}) {
  return request('/Amaidan-Merchants-Web/merchants/busStoreInfo/getStorePageByMerchantsId', {
    method: 'POST',
    data: params
  })
}

// 根据 id 删除单个列表
export function deleteMacAdress(params={}) {
  return request('/Amaidan-Merchants-Web/merchants/storeFaceGuest/deleteMacAdress', {
    method: 'POST',
    data: params
  })
}



// 访客列表
export function getVisitorList(params={}) {
  return request('/Amaidan-Merchants-Web/user/faceUser/visitorList', {
    method: 'POST',
    data: params
  })
}
